/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ch.simas.javaee6examples.web;

import ch.simas.javaee6examples.cdi.AnyClass;
import ch.simas.javaee6examples.service.CdiService;
import javax.ejb.EJB;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.inject.Named;

/**
 *
 * @author Simon
 */
@Named
@RequestScoped
public class CdiBean {

    @Inject
    private AnyClass anyClass;
    @EJB
    private CdiService cdiService;

    public String getHello() {
        return anyClass.hello();
    }

    public String getHelloFromEjb() {
        return cdiService.hello();
    }
}
